    <script type="text/javascript" charset="utf-8" src="/addons/ueditor/utf8-php/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/addons/ueditor/utf8-php/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="/addons/ueditor/utf8-php/lang/zh-cn/zh-cn.js"></script>
{if condition="strpos(get_url(), 'add') neq  ''"}
<!--发布页面-->
<script id="editor" name="content" type="text/plain" style="height:400px;width: 100%;"></script>
{/if} 
{if condition="strpos(get_url(), 'edit') neq  ''"}
<!--编辑页面-->
<script id="editor" name="content" type="text/plain" style="height:400px;width: 100%;">{$c['content']|htmlspecialchars_decode}</script>
{/if} 
<script type="text/javascript">
      var ue = UE.getEditor('editor');
</script>